<template>
  <el-card class="common-card">
    <div class="title">{{title}}</div>
    <div class="value">{{value }}</div>
    <div class="chart">
      <slot name='chart'></slot>
    </div>
    <div class="line"></div>
    <div class="bottom">
      <slot name="bottom"></slot>
    </div>
  </el-card>
</template>

<script>
export default {
  name: 'CommonCard',
  props: ['title', 'value'],
}
</script>

<style lang="scss"scoped>
.common-card {
  .title {
    font-size: 12px;
    color: #999;
  }
  .value {
    font-size: 25px;
    color: #000;
    letter-spacing: 1px;
    margin: 5px 0px;
  }
  .chart {
    height: 50px;
    // background: #999;
  }
  .line {
    border: 1px solid #eee;
    margin: 5px 0px;
  }
  .bottom {
    font-size: 12px;
    color: #666;
  }
}
</style>